package se.sweco.gpsservice;

public class GPSUpdateEvent extends java.util.EventObject {
	private static final long serialVersionUID = -1461049424458015174L;
	
	static int LOCATION_UPDATE = 1;
	static int VELOCITY_UPDATE = 2;
	static int SATTELITE_UPDATE = 3;
	static int LOC_AND_SAT_UPDATE = 4;
	
	GPSConnect gpsConnection;
	int eventtype;
	
	public GPSUpdateEvent(GPSConnect gpsConnection, int eventtype) {
		super(gpsConnection);
		this.gpsConnection = gpsConnection;
		this.eventtype = eventtype;
	}

	public int getEventType() {
		return eventtype;
	}

	public void setEventType(int eventtype) {
		this.eventtype = eventtype;
	}
	
	public GPSConnect getSource() {
		return gpsConnection;
	}
	
	
}
